<%@page import="com.xe.gae.control.XEResourcesManager"%>
<%@page import="com.xe.gae.control.XEDataStorageService"%>
<%@page import="com.xe.gae.model.XEResource"%>
<%@ page import="com.xe.gae.control.XEBlobstoreService" %>
<%
XEBlobstoreService blobstoreService = new XEBlobstoreService ();
XEResourcesManager rm = new XEResourcesManager();
String rk=request.getParameter("resource-key");
XEResource r; 
XEDataStorageService dss=new XEDataStorageService();
if (rk!=null){
	r = (XEResource) dss.findByEncodeKey(XEResource.class, rk);
}
else{
	
	r= rm.getRoot();
	
}

String key = rm.getEncodeKey(r);
%>
<body>


    <form action="/_xe/admin" method="post">
        <input type="hidden" name="resource-key" value="<%=key%>"/>
        <input type="hidden" name="action" id="action" value="new-folder"/>
        <%=r.getPath()%>
        <input type="text" name="name" id="name"/>
        <input type="submit" name="submit" value="Create"/>
    </form>
</body>